package g_proxy.a_remote.server;

import java.rmi.RemoteException;

/**
 * Created by wug on 2016/7/4 0004.
 */
public class RomoteServiceImpl implements RemoteService {

    public RomoteServiceImpl() {
    }

    @Override
    public User login(String name, String pwd) throws RemoteException {
        if (name.equals("admin") && pwd.equals("admin")) {
            return new User("admin", 1);
        } else {
            return null;
        }
    }
}
